package com.sk.service.impl;

import com.sk.entity.Equipment;
import com.sk.entity.EquipmentType;
import com.sk.mapper.EquipmentMapper;
import com.sk.mapper.EquipmentTypeMapper;
import com.sk.service.IEquipmentTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sk.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author smith
 * @since 2025-05-27
 */
@Service
public class EquipmentTypeServiceImpl   implements IEquipmentTypeService {

    @Autowired
    private EquipmentTypeMapper typeMapper;
    @Override
    public Result getAll() {
        List<EquipmentType> typeList =typeMapper.selectList(null);
        if(typeList !=null && typeList.size()>0)
            return Result.getSuccess(typeList);
        return Result.getFail("暂无装备类别数据");
    }


}
